//
// Created by Ryan on 2020/11/26.
//

#ifndef CCOS_CONSOLE_H
#define CCOS_CONSOLE_H

#include "types.h"


typedef
enum  {
    word_black = 0,
    word_blue,
    word_green,
    word_cyan,
    word_red,
    word_magenta,
    word_brown,
    word_light_grey,
    word_dark_grey,
    word_light_blue,
    word_light_green,
    word_light_cyan,
    word_light_red,
    word_light_magenta,
    word_light_brown,  // yellow
    word_white,
} word_color;

// 清屏操作
void console_clean ();

// 屏幕输出一个字符带颜色
void console_out_c_word_color (char c, word_color back, word_color front);

// 屏幕输出字符串包含"\0"默认黑底白字
void console_write_string (char *string);

// 屏幕输出字符串包含"\0", 带前后背景颜色
void console_write_string_word_color (char *string, word_color back, word_color front);

// 屏幕输出十六进制的整型数字
void console_write_hex (uint32_v target, word_color back, word_color front);

// 屏幕输出十进制的整型数字
void console_write_dec (uint32_v target, word_color back, word_color front);

void cursor_forward();

void cursor_back();



#endif //CCOS_CONSOLE_H
